package com.zut.blocks.base.domain;

import com.zut.blocks.base.enums.UserTypes;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

/**
 * @author lxd
 * @date 2020/11/24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user")
@Entity
public class User extends BaseEntity<Integer> {

    @Column(name = "user_num")
    public String userNumber;

    @Column(name = "name")
    public String name;

    @Column(name = "username")
    public String username;

    @Column(name = "gender")
    public String gender;

    @Column(name = "feature")
    public String feature;

    @Enumerated(EnumType.STRING)
    @Column(name = "type")
    public UserTypes userTypes;

    @Column(name = "password")
    public String password;

}
